package cn.jeeweb.web.modules.sys.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.util.List;

/**
 * 包类
 */
public class UiActionButton implements java.io.Serializable{
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    @TableField(value = "localKey")
    private String localKey;//本地化文件关键字
    @TableField(value = "code")
    private String code;//编号
    @TableField(value = "text")
    private String text;//按钮显示的文字
    @TableField(value = "module_Id")
    private String moduleId;//所属模块ID
    @TableField(value = "package_Id")
    private String packageId;//所属页面元素包ID
    @TableField(value = "sort")
    private int sort;//排序
    @TableField(value = "withIcon")
    private int withIcon;//是否需要显示标签
    @TableField(value = "icon")
    private String icon;//图标
    @TableField(value = "controlRule")
    private String controlRule;//应用规则的Code：多个以|连接
    @TableField(value = "width")
    private String width;//控件宽度
    @TableField(value = "actionCode")
    private String actionCode;
    @TableField(value = "context")
    private String context;

    @TableField(exist = false)
    public List<UiControlRule> controlRules;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLocalKey() {
        return localKey;
    }

    public void setLocalKey(String localKey) {
        this.localKey = localKey;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getModuleId() {
        return moduleId;
    }

    public void setModuleId(String moduleId) {
        this.moduleId = moduleId;
    }

    public String getPackageId() {
        return packageId;
    }

    public void setPackageId(String packageId) {
        this.packageId = packageId;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getWithIcon() {
        return withIcon;
    }

    public void setWithIcon(int withIcon) {
        this.withIcon = withIcon;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getControlRule() {
        return controlRule;
    }

    public void setControlRule(String controlRule) {
        this.controlRule = controlRule;
    }

    public String getWidth() {
        return width;
    }

    public void setWidth(String width) {
        this.width = width;
    }

    public List<UiControlRule> getControlRules() {
        return controlRules;
    }

    public void setControlRules(List<UiControlRule> controlRules) {
        this.controlRules = controlRules;
    }

    public String getActionCode() {
        return actionCode;
    }

    public void setActionCode(String actionCode) {
        this.actionCode = actionCode;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }
}
